package cn.haohaowo.dao;

import cn.haohaowo.annotation.MyBatisRepository;
import cn.haohaowo.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by luwancai on 18/5/19.
 * DESC:
 */
@MyBatisRepository
public interface OrderDao {

    Order getOrderById(@Param("orderId") int orderId);

    List<Order> getOrders(@Param("accountId") int accountId,
                        @Param("minRow") int minRow,
                        @Param("pageSize") int pageSize);

    List<Order> getHotOrders();

    List<Order> getSearchOrders(@Param("keyword") String keyword);

    int insertOrder(Order Order);

    int updateOrder(Order Order);

}
